import request from '@/utils/request'
export function studentChangeStatus(data) {
  return request({
    url: 'class/studentChangeStatus',
    method: 'put',
    data

  })
}
export function delChangeStatus(data) {
  return request({
    url: 'class/student',
    method: 'delete',
    data

  })
}
// 获取学生信息
export function getStudentList(params) {
  return request({
    url: '/class/student',
    method: 'get',
    params

  })
}

// 添加学生信息
export function addStudent(data) {
  return request({
    url: '/class/student',
    method: 'post',
    data

  })
}

// 获取单行信息
export function getStudent(id) {
  return request({
    url: `/class/student/${id}`,
    method: 'get'

  })
}

// 修改学生信息
export function editStudent(data) {
  return request({
    url: `/class/student/${data.id}`,
    method: 'put',
    data

  })
}

// 删除学生信息
export function delStudent(data) {
  return request({
    url: '/class/student',
    method: 'delete',
    data

  })
}

// 2.8全部导入
export const alladdListAPI = (data) => {
  return request({
    method: 'post',
    url: '/class/student/import',
    data
  })
}

